﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	x:Class="MyUtility.PivotPageSample"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait"
	shell:SystemTray.IsVisible="True">

	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent">
		<!--Pivot Control-->
		<controls:Pivot x:Name="myPivot" Title="MY APPLICATION">
			<controls:Pivot.Background>
				<ImageBrush ImageSource="Images/800x480.jpg" Stretch="UniformToFill"/>
			</controls:Pivot.Background>
			<!--Pivot item one-->
			<controls:PivotItem Header="item1">
				<StackPanel Background="#7F000000">
					<Button x:Name="bnt01" Content="Jump to Item 2" Click="bnt01_Click"/>
					<Button x:Name="bnt02" Content="Jump to Item 3" Click="bnt02_Click"/>
				</StackPanel>
			</controls:PivotItem>

 			<!--Pivot item two-->
			<controls:PivotItem Header="item2">
				<Grid Background="#7F000000"/>
			</controls:PivotItem>
			
			<controls:PivotItem Header="item3">
				<Grid>
					<Grid.Background>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="Black" Offset="0"/>
							<GradientStop Color="#7F000000" Offset="1"/>
						</LinearGradientBrush>
					</Grid.Background>
				</Grid>
			</controls:PivotItem>
		</controls:Pivot>
	</Grid>
</phone:PhoneApplicationPage>